package com.yx.system.service.impl;

import com.yx.system.dao.TbBankcardDao;
import com.yx.system.entity.TbBankcard;
import com.yx.system.service.TbBankcardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;




@Service
public class TbBankcardServiceImpl implements TbBankcardService {
	@Autowired
	private TbBankcardDao bankcardDao;
	
	@Override
	public TbBankcard queryObject(Integer id){
		return bankcardDao.queryObject(id);
	}
	
	@Override
	public List<TbBankcard> queryList(Map<String, Object> map){
		return bankcardDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bankcardDao.queryTotal(map);
	}
	
	@Override
	public void save(TbBankcard bankcard){
		bankcardDao.save(bankcard);
	}
	
	@Override
	public void update(TbBankcard bankcard){
		bankcardDao.update(bankcard);
	}
	
	@Override
	public void delete(Integer id){
		bankcardDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		bankcardDao.deleteBatch(ids);
	}

	@Override
	public TbBankcard findByUser(Integer userId) {
		return bankcardDao.findByUser(userId);
	}

}
